from feature_set.app.un.app_un_cate_v1.AppUnCateV1 import AppUnCateV1
import pandas as pd
import json
import os


class AppIdCateV1(AppUnCateV1):
    def __init__(self):
        super().__init__()

        self.country_info = json.load(
            open(os.path.join(self.conf_dir,"app","id","app_id_cate_v1","app_id_cate_v1_country_info.json",))
        )

        self.google_app_cate_info = pd.read_csv(
            os.path.join(self.conf_dir, 'app', 'id', 'app_id_cate_v1', 'google_app_cate_info.csv')
        )

        self.app_name = "app_name"
        self.package_name = "app_package"
        self.inst_time_name = "fi_time"
        self.updt_time_name = "lu_time"
        self.pre_inst_name = "isSystem"